package com.matt.foundation.constant;

import lombok.Setter;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/4
 * *******************************
 */
public class CommonConstant {

//    public static final String TEACH_PLATFORM_NAME="麦宝管理系统";

    public static final String SSO_CALL_ERROR_MSG="用户信息系统 通信错误";

    public static final String EMPLOYEE_CALL_ERROR_MSG="雇员助手系统通信错误";

    public static final String NURSERY_AUDITOR_OPEN_KEY="NURSERY_AUDITOR_OPEN";

    public static final String EARLY_AUDITOR_OPEN_KEY="EARLY_AUDITOR_OPEN";

    public static final String AREA_BUILD_OPEN_KEY="AREA_BUILD_AUDITOR_OPEN";
    
    public static final String KXTHEME_AUDITOR_OPEN_KEY="KXTHEME_AUDITOR_OPEN";


    public static final String LIVE_AUDITOR_OPEN_KEY="LIVE_AUDITOR_OPEN";

    public static final int TEACH_PLATFORM_TYPE = 1; //托育智能芯管理系统

    public static final String TEACH_PLATFORM_ID = "002a83d62a304cadbf0cbb156ce28f27";

//    public static final String TEACH_PLATFORM_ID = "002a83d62a304cadbf0cbb156ce28f29";

    public enum Platform {
        WEB(1, "WEB"),
        PAD(2, "PAD");

        @Setter
        private int code;

        @Setter
        private String value;

        Platform(int code, String value){
            this.code = code;
            this.value = value;
        }

        public int codeOf(){
            return code;
        }

        public String valueOf(){
            return value;
        }

        public Platform get(int code){
            for (Platform loginChannel : values()) {
                if (loginChannel.codeOf()==code)
                    return loginChannel;
            }
            return null;
        }
    }


    public enum Gender{
        FEMALE(0, "女"),
        MALE(1, "男");

        @Setter
        private int code;

        @Setter
        private String value;

        Gender(int code, String value){
            this.code = code;
            this.value = value;
        }

        public int codeOf(){
            return code;
        }

        public String valueOf(){
            return value;
        }

        public Gender get(int code){
            for (Gender gender : values()) {
                if (gender.codeOf()==code)
                    return gender;
            }
            return null;
        }
    }

}
